import { _decorator, Component, Node, NodeEventType } from 'cc';
import { MotionTrail } from './Script/MotionTrail';
const { ccclass, property } = _decorator;

@ccclass('HelloWorld')
export class HelloWorld extends Component {
    start() {
        this.node.on(NodeEventType.TOUCH_END,()=>{
            this.node.getChildByName('拖尾').getComponent(MotionTrail).isActive = true;
        },this);
    }

    update(deltaTime: number) {
        
    }
}


